package com.ifacebox.client.tools;

import java.io.File;

/**
 * @author znn
 */
public class SspUploadConstants {
    /**
     * 接口地址
     */
    public static final String UPLOAD_SSP_URL = "https://jupingx.baidu.com/jpssp";
    /**
     * 查询全部POI接口地址
     */
    public static final String UPLOAD_QUERY_MONITINFO_URL = UPLOAD_SSP_URL + "/delivery/newTrustGD/queryMonitInfo";
    /**
     * 查找POI接口地址
     */
    public static final String UPLOAD_SEARCH_POI_URL = UPLOAD_SSP_URL + "/delivery/newTrustGD/searchPoi";
    /**
     * 上传文件接口地址
     */
    public static final String UPLOAD_FILE_URL = UPLOAD_SSP_URL + "/common/uploadFile";
    /**
     * 上传反馈监播接口地址
     */
    public static final String UPLOAD_FEEDBACK_IMAGE_URL = UPLOAD_SSP_URL + "/delivery/newTrustGD/uploadFeedbackImage";

    /**
     * 表头
     */
    public static final String[] UPLOAD_TABLE_COLUMN_NAME = new String[]{"文件", "名称", "状态", "失败信息"};
    /**
     * 上传信息
     */
    public static final String UPLOAD_INFO = "监播日期：%s 订单号：%s";
    /**
     * 上传状态
     */
    public static final String UPLOAD_STATUS = UPLOAD_INFO + " 文件数量：%s 成功：%s 失败：%s";
    /**
     * 配置文件
     */
    public static final File UPLOAD_CONFIG_FILE = new File(SspUtils.getLocalPath(), "SspUploadConfig.json");
    /**
     * 文件名分割长度
     */
    public static final int UPLOAD_FILE_NAME_LENGTH = 2;
    /**
     * 文件名日期长度
     */
    public static final int UPLOAD_FILE_NAME_DATE_LENGTH = 10;
    /**
     * 错误代码
     */
    public static final String UPLOAD_ERROR_CODE = "errorCode";
    public static final String UPLOAD_ERR_NO = "errno";
    /**
     * 错误信息
     */
    public static final String UPLOAD_ERROR_MSG = "errorMsg";
    public static final String UPLOAD_ERR_MSG = "errmsg";
    /**
     * 成功
     */
    public static final String UPLOAD_OK = "0";
}
